<?php
// ------------------------------------------------------------------------
// |@Author       : Jarmin <edshop@qq.com>
// |@----------------------------------------------------------------------
// |@Date         : 2023-05-04 19:42:27
// |@----------------------------------------------------------------------
// |@LastEditTime : 2023-06-03 17:00:52
// |@----------------------------------------------------------------------
// |@LastEditors  : Jarmin <jarmin@ladmin.cn>
// |@----------------------------------------------------------------------
// |@Description  :
// |@----------------------------------------------------------------------
// |@FilePath     : app.php
// |@----------------------------------------------------------------------
// |@Copyright (c) 2023 http://www.ladmin.cn   All rights reserved. 
// ------------------------------------------------------------------------
use think\facade\Route;

use think\admin\middleware\Auth;

Route::post('user/token' , 'User/token');
Route::get('user/menu'   , 'User/getUserMenu');
Route::get('ver'    , 'Index/ver');
Route::group('/', function(){
    Route::get('user/list'  , 'User/list');
    Route::post('user/save'  , 'User/save');
    Route::put('user/state', 'User/state');
    Route::delete('user/remove', 'User/remove');
    Route::post('user/reset', 'User/reset');
    Route::get('dept/list'  , 'Dept/list');
    Route::post('dept/save'  , 'Dept/save');
    Route::delete('dept/remove', 'Dept/remove');
    Route::get('role/list'  , 'Role/list');
    Route::get('role/auth'  , 'Role/auth');
    Route::post('role/save'  , 'Role/save');
    Route::put('role/state', 'Role/state');
    Route::post('role/allot'  , 'Role/allot');
    Route::delete('role/remove', 'Role/remove');
    Route::get('menu/list'  , 'Menu/list');
    Route::post('menu/save'  , 'Menu/save');
    Route::put('menu/sort', 'Menu/sort');
    Route::delete('menu/remove', 'Menu/remove');
    Route::get('filec/list'  , 'FileClassify/list');
    Route::post('filec/save'  , 'FileClassify/save');
    Route::delete('filec/remove', 'FileClassify/remove');
    Route::get('file/list'  , 'File/list');
})->middleware(Auth::class)->allowCrossDomain();